package cn.java71.dao;

import cn.java71.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface SubjectDao {
    public List<Subject> findALL();

    public List<Subject> findALLWithGrade();
    public List<Subject> findALLWithGrade2();
//根据年级号查找课程信息
    public List<Subject> findByGrade(long gradeid);


    public int count();
    public int add(Subject s);
    public int update(Subject s);
    public int delete(long id);

    /**
     *
     * @param pageNo 页号
     * @param pageSize 页大小
     * @return
     */
    public List<Subject> paging(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize);

}
